package com.longdaji.decoration.ui.detail;


import com.longdaji.decoration.base.BasePresenter;
import com.longdaji.decoration.base.BaseView;
import com.longdaji.decoration.data.bean.GoodsCommentBean;
import com.longdaji.decoration.data.bean.GoodsImagesBean;
import com.longdaji.decoration.data.bean.GoodsSkuBean;

import java.util.List;

/**
 * Created by longtao on 2017/12/19.
 */

public interface GoodsDetailContract {

    interface View extends BaseView {
        void showBanner(List<GoodsImagesBean.GoodsImages> list);

        void showGoodsDetail(GoodsSkuBean.Goods goodsSku);

        //void showDefaultComment(GoodsCommentListBean goodsCommentListBean);

        void showDefaultComment(GoodsCommentBean goodsCommentBean);

        void showNoDefaultComment();

        void showGoodsDetailImage(String imageAddress);

        void addToCartSuccess();

        void addToCartFail(String msg);

        void showLikeSuccess();

        void showLikeFail();

        void showDisLikeSuccess();

        void showDisLikeFail();

        void showCollectSuccess();

        void showCollectFail();

        void showDisCollectSuccess();

        void showDisCollectFail();

        void showShareUrl(String url);
    }

    interface Presenter extends BasePresenter<View> {
        void getBannerImagesAndVideos(String goodsId);

        void getGoodsDetail(String goodId, String userId);

        void getGoodsDetailImage(String goodId);

        void getGoodsComments(String goodId, String userId);

        void getDefaultComment(String goodId);

        void addGoodsSkuToCart(GoodsSkuBean.Goods.GoodsSku sku, int quantity);

        void likeOrDislikeGoods(String userId, String commentId, String isLike);

        void collectCurGoods(String userId, String goodId);

        void disCollectCurGoods(String userId, String goodId);

        void getShareUrl();

        void countVisitNum(GoodsSkuBean.Goods good);
    }
}
